package sb.simple.wrapper.common;


public enum OtherErrorEnum {

    SUCCESS(200, "成功"),
    NO_PERMISSION(403, "没权限"),
    NO_AUTH(401, "未登录"),
    NOT_FOUND(404, "未找到该资源"),
    INTERNAL_SERVER_ERROR(500, "服务器异常请联系管理员");

    //错误码
    private int errorCode;
    //错误信息
    private String errorMsg;

    OtherErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }


    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
